-- GENERATED SPELL FOR [Unholy Axe] --


function spell0_16194(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16194', 5331, 1)
end

function spell1_16194(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(41057,pUnit)
pUnit:RegisterEvent('Sorts_16194', 568, 1)
end

function spell2_16194(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(55463,pUnit)
pUnit:RegisterEvent('Sorts_16194', 2000, 1)
end

function Sorts_16194(pUnit, Event)
local choix_sorts_16194 = math.random(0, 2)
if choix_sorts_16194 == 0 then
pUnit:RegisterEvent('spell0_16194', 1, 1)
end
if choix_sorts_16194 == 1 then
pUnit:RegisterEvent('spell1_16194', 1, 1)
end
if choix_sorts_16194 == 2 then
pUnit:RegisterEvent('spell2_16194', 1, 1)
end
end

function mob16194_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16194', math.random(1500, 3000), 1)
end

function mob16194_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16194_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16194_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16194, 1, 'mob16194_Action')
RegisterUnitEvent(16194, 2, 'mob16194_Leave')
RegisterUnitEvent(16194, 3, 'mob16194_Kill')
RegisterUnitEvent(16194, 4, 'mob16194_Die')
